<?	// 页面头处理错误, handle errors if have
	handle_error($errors);	// 未完成
?>
<!DOCTYPE HTML><html>
<head>
<? echo $h->meta($title, $kwd, $dpn); ?>
<? require_once("lib.php"); ?>
<script src="<?=$ecom?>/js/jquery.validate.js" type="text/javascript"></script>
<script src="<?=$ecom?>/js/jquery.metadata.js" type="text/javascript"></script>
</head>

<body>
<? include_once("header.php"); ?>
<div id="wrap">
	<div id="main">
		<ul class="flow_step">
			<li>...</li>
			<li class="step1"><?=WEB_BANK_RECEIPT_UPLOAD?></li>
			<li>...</li>
		<div class="clear"></div>
		</ul><!--flow_step end -->
		<div id="pay_box">
			<div id="order_title"><?=WEB_BANK_TRANSFER?></div>
			<div class="order_payment_area">
				<?
				// 银行转账方式, 单据处理
					echo $h->form($url.'.php',1,'need_check');
					echo $h->hidden('action','update');
					$receipt_button=' '.WEB_SUBMIT.' ';
				?>
				<div class="px10"></div>
				<table class="receipt" width="99%">
					<tr><td width="160" class="tright"><span class="red">*</span> <?=WEB_ORDER_REF_NO?>:</td><td>
						<input name="ref_no" class="g {validate:{required:true,messages:{required:'<?=WEB_REQUIRED?>'}}}" /> 
					</td></tr>
					<tr><td width="160" class="tright"><?=WEB_BANK_REF_NO?>:</td><td>
						<input name="payment_ref_no" class="g" />
					</td></tr>
					<tr><td class="tright"><span class="red">*</span> <?=WEB_BANK_ACCOUNT?>:</td><td>
						<input name="payer_id" class="g {validate:{required:true,messages:{required:'<?=WEB_REQUIRED?>'}}}" />
					</td></tr>
					<tr><td class="tright"><span class="red">*</span> <?=WEB_BANK_ACCOUNT_OWNER?>:</td><td>
						<input name="payer" class="g {validate:{required:true,messages:{required:'<?=WEB_REQUIRED?>'}}}" />
					</td></tr>
					<tr><td class="tright"><?=WEB_BANK_RECEIPT?>:</td><td>
						<? echo $h->cfile('cpic', 'g'); ?></td></tr>
					<tr><td>&nbsp;</td><td><a class="button_blue" onclick="$('.need_check').submit();"><?=$receipt_button?></a></td></tr>
				</table>
				<? echo $h->former(); ?>
				<script type="text/javascript">
				$(document).ready(function(){
					$(".need_check").validate({meta: "validate", onkeyup: false, 
						errorPlacement: function( label, element ) {
							element.parent().append("<br>").append(label);
						}
					});
				}	);
				</script>
			</div><!--order_payment_area end-->
		</div><!--pay_box end-->
	</div><!--main end-->
</div><!--wrap end-->
<? include("footer.php"); ?>
</body>
</html>